import axios from "axios";



//修改这是的ip地址和域名
const baseaxiso = axios.create({
    baseURL: "http://www.abao-node.cn:300",
    timeout:50000

})
baseaxiso.interceptors.request.use(config=>{
    const token =localStorage.getItem("token")
    
    if(token){
     config.headers.token= token
     
    }
    return config
})
baseaxiso.interceptors.response.use(err=>{
   
    return err
})
export default baseaxiso